﻿using System;
namespace Maticsoft.Model
{
    /// <summary>
    /// SO_SODetails:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class SO_SODetails
    {
        public SO_SODetails()
        { }
        #region Model
        private int _autoid;
        private string _csocode;
        private string _cinvcode;
        private DateTime? _dpredate;
        private decimal? _iquantity;
        private decimal? _inum;
        private decimal? _iquotedprice;
        private decimal? _iunitprice;
        private decimal? _itaxunitprice;
        private decimal? _imoney;
        private decimal? _itax;
        private decimal? _isum;
        private decimal? _idiscount;
        private decimal? _inatunitprice;
        private decimal? _inatmoney;
        private decimal? _inattax;
        private decimal? _inatsum;
        private decimal? _inatdiscount;
        private decimal? _ifhnum;
        private decimal? _ifhquantity;
        private decimal? _ifhmoney;
        private decimal? _ikpquantity;
        private decimal? _ikpnum;
        private decimal? _ikpmoney;
        private string _cmemo;
        private string _cfree1;
        private string _cfree2;
        private int? _bfh;
        private int _isosid = 0;
        private decimal? _kl = 0M;
        private decimal? _kl2 = 0M;
        private string _cinvname;
        private decimal? _itaxrate = 0M;
        private string _cdefine22;
        private string _cdefine23;
        private string _cdefine24;
        private string _cdefine25;
        private decimal? _cdefine26;
        private decimal? _cdefine27;
        private string _citemcode;
        private string _citem_class;
        private string _citemname;
        private string _citem_cname;
        private string _cfree3;
        private string _cfree4;
        private string _cfree5;
        private string _cfree6;
        private string _cfree7;
        private string _cfree8;
        private string _cfree9;
        private string _cfree10;
        private decimal? _iinvexchrate;
        private string _cunitid;
        private int? _id;
        private string _cdefine28;
        private string _cdefine29;
        private string _cdefine30;
        private string _cdefine31;
        private string _cdefine32;
        private string _cdefine33;
        private int? _cdefine34;
        private int? _cdefine35;
        private DateTime? _cdefine36;
        private DateTime? _cdefine37;
        private decimal? _fpurquan;
        private decimal? _fsalecost;
        private decimal? _fsaleprice;
        private string _cquocode;
        private int? _iquoid;
        private string _cscloser;
        private DateTime? _dpremodate;
        private int? _irowno;
        private int? _icusbomid;
        private decimal? _imoquantity;
        private string _ccontractid;
        private string _ccontracttagcode;
        private Guid _ccontractrowguid;
        private int? _ippartseqid;
        private int? _ippartid;
        private decimal? _ippartqty;
        private string _ccusinvcode;
        private string _ccusinvname;
        private decimal? _iprekeepquantity;
        private decimal? _iprekeepnum;
        private decimal? _iprekeeptotquantity;
        private decimal? _iprekeeptotnum;
        private DateTime? _dreleasedate;
        private decimal? _fcusminprice;
        private decimal? _fimquantity;
        private decimal? _fomquantity;
        private bool _ballpurchase;
        private decimal? _finquantity;
        private decimal? _icostquantity;
        private decimal? _icostsum;
        private decimal? _foutquantity;
        private decimal? _foutnum;
        private decimal? _iexchsum;
        private decimal? _imoneysum;
        private int? _iaoids;
        private string _cpreordercode;
        private decimal? _fretquantity;
        private decimal? _fretnum;
        private DateTime? _dbclosedate;
        private DateTime? _dbclosesystime;
        private bool _borderbom;
        private int? _borderbomover;
        private int? _idemandtype;
        private string _cdemandcode;
        private string _cdemandmemo;
        private decimal? _fpursum;
        private decimal? _fpurbillqty;
        private decimal? _fpurbillsum;
        private long? _iimid;
        private string _ccorvouchtype;
        private int? _icorrowno;
        private bool _busecusbom;
        private Guid _body_outid;
        private decimal? _fveridispqty;
        private decimal? _fveridispsum;
        /// <summary>
        /// 子表id
        /// </summary>
        public int AutoID
        {
            set { _autoid = value; }
            get { return _autoid; }
        }
        /// <summary>
        /// 销售订单号
        /// </summary>
        public string cSOCode
        {
            set { _csocode = value; }
            get { return _csocode; }
        }
        /// <summary>
        /// 存货编码
        /// </summary>
        public string cInvCode
        {
            set { _cinvcode = value; }
            get { return _cinvcode; }
        }
        /// <summary>
        /// 预发货日期
        /// </summary>
        public DateTime? dPreDate
        {
            set { _dpredate = value; }
            get { return _dpredate; }
        }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal? iQuantity
        {
            set { _iquantity = value; }
            get { return _iquantity; }
        }
        /// <summary>
        /// 辅计量数量
        /// </summary>
        public decimal? iNum
        {
            set { _inum = value; }
            get { return _inum; }
        }
        /// <summary>
        /// 报价
        /// </summary>
        public decimal? iQuotedPrice
        {
            set { _iquotedprice = value; }
            get { return _iquotedprice; }
        }
        /// <summary>
        /// 原币无税单价
        /// </summary>
        public decimal? iUnitPrice
        {
            set { _iunitprice = value; }
            get { return _iunitprice; }
        }
        /// <summary>
        /// 原币含税单价
        /// </summary>
        public decimal? iTaxUnitPrice
        {
            set { _itaxunitprice = value; }
            get { return _itaxunitprice; }
        }
        /// <summary>
        /// 原币无税金额
        /// </summary>
        public decimal? iMoney
        {
            set { _imoney = value; }
            get { return _imoney; }
        }
        /// <summary>
        /// 原币税额
        /// </summary>
        public decimal? iTax
        {
            set { _itax = value; }
            get { return _itax; }
        }
        /// <summary>
        /// 原币价税合计
        /// </summary>
        public decimal? iSum
        {
            set { _isum = value; }
            get { return _isum; }
        }
        /// <summary>
        /// 原币折扣额
        /// </summary>
        public decimal? iDisCount
        {
            set { _idiscount = value; }
            get { return _idiscount; }
        }
        /// <summary>
        /// 本币无税单价
        /// </summary>
        public decimal? iNatUnitPrice
        {
            set { _inatunitprice = value; }
            get { return _inatunitprice; }
        }
        /// <summary>
        /// 本币无税金额
        /// </summary>
        public decimal? iNatMoney
        {
            set { _inatmoney = value; }
            get { return _inatmoney; }
        }
        /// <summary>
        /// 本币税额
        /// </summary>
        public decimal? iNatTax
        {
            set { _inattax = value; }
            get { return _inattax; }
        }
        /// <summary>
        /// 本币价税合计
        /// </summary>
        public decimal? iNatSum
        {
            set { _inatsum = value; }
            get { return _inatsum; }
        }
        /// <summary>
        /// 本币折扣额
        /// </summary>
        public decimal? iNatDisCount
        {
            set { _inatdiscount = value; }
            get { return _inatdiscount; }
        }
        /// <summary>
        /// 累计发货辅计量数量
        /// </summary>
        public decimal? iFHNum
        {
            set { _ifhnum = value; }
            get { return _ifhnum; }
        }
        /// <summary>
        /// 累计发货数量
        /// </summary>
        public decimal? iFHQuantity
        {
            set { _ifhquantity = value; }
            get { return _ifhquantity; }
        }
        /// <summary>
        /// 累计原币发货金额
        /// </summary>
        public decimal? iFHMoney
        {
            set { _ifhmoney = value; }
            get { return _ifhmoney; }
        }
        /// <summary>
        /// 累计开票数量
        /// </summary>
        public decimal? iKPQuantity
        {
            set { _ikpquantity = value; }
            get { return _ikpquantity; }
        }
        /// <summary>
        /// 累计开票辅计量数量
        /// </summary>
        public decimal? iKPNum
        {
            set { _ikpnum = value; }
            get { return _ikpnum; }
        }
        /// <summary>
        /// 累计原币开票金额
        /// </summary>
        public decimal? iKPMoney
        {
            set { _ikpmoney = value; }
            get { return _ikpmoney; }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string cMemo
        {
            set { _cmemo = value; }
            get { return _cmemo; }
        }
        /// <summary>
        /// 存货自由项1
        /// </summary>
        public string cFree1
        {
            set { _cfree1 = value; }
            get { return _cfree1; }
        }
        /// <summary>
        /// 存货自由项2
        /// </summary>
        public string cFree2
        {
            set { _cfree2 = value; }
            get { return _cfree2; }
        }
        /// <summary>
        /// 现无用
        /// </summary>
        public int? bFH
        {
            set { _bfh = value; }
            get { return _bfh; }
        }
        /// <summary>
        /// 销售订单子表标识2
        /// </summary>
        public int iSOsID
        {
            set { _isosid = value; }
            get { return _isosid; }
        }
        /// <summary>
        /// 扣率
        /// </summary>
        public decimal? KL
        {
            set { _kl = value; }
            get { return _kl; }
        }
        /// <summary>
        /// 二次扣率
        /// </summary>
        public decimal? KL2
        {
            set { _kl2 = value; }
            get { return _kl2; }
        }
        /// <summary>
        /// 存货名称
        /// </summary>
        public string cInvName
        {
            set { _cinvname = value; }
            get { return _cinvname; }
        }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal? iTaxRate
        {
            set { _itaxrate = value; }
            get { return _itaxrate; }
        }
        /// <summary>
        /// 表体自定义项22
        /// </summary>
        public string cDefine22
        {
            set { _cdefine22 = value; }
            get { return _cdefine22; }
        }
        /// <summary>
        /// 表体自定义项23
        /// </summary>
        public string cDefine23
        {
            set { _cdefine23 = value; }
            get { return _cdefine23; }
        }
        /// <summary>
        /// 表体自定义项24
        /// </summary>
        public string cDefine24
        {
            set { _cdefine24 = value; }
            get { return _cdefine24; }
        }
        /// <summary>
        /// 表体自定义项25
        /// </summary>
        public string cDefine25
        {
            set { _cdefine25 = value; }
            get { return _cdefine25; }
        }
        /// <summary>
        /// 表体自定义项26
        /// </summary>
        public decimal? cDefine26
        {
            set { _cdefine26 = value; }
            get { return _cdefine26; }
        }
        /// <summary>
        /// 表体自定义项27
        /// </summary>
        public decimal? cDefine27
        {
            set { _cdefine27 = value; }
            get { return _cdefine27; }
        }
        /// <summary>
        /// 项目编码
        /// </summary>
        public string cItemCode
        {
            set { _citemcode = value; }
            get { return _citemcode; }
        }
        /// <summary>
        /// 项目大类编码
        /// </summary>
        public string cItem_class
        {
            set { _citem_class = value; }
            get { return _citem_class; }
        }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string cItemName
        {
            set { _citemname = value; }
            get { return _citemname; }
        }
        /// <summary>
        /// 项目大类名称
        /// </summary>
        public string cItem_CName
        {
            set { _citem_cname = value; }
            get { return _citem_cname; }
        }
        /// <summary>
        /// 存货自由项3
        /// </summary>
        public string cFree3
        {
            set { _cfree3 = value; }
            get { return _cfree3; }
        }
        /// <summary>
        /// 存货自由项4
        /// </summary>
        public string cFree4
        {
            set { _cfree4 = value; }
            get { return _cfree4; }
        }
        /// <summary>
        /// 存货自由项5
        /// </summary>
        public string cFree5
        {
            set { _cfree5 = value; }
            get { return _cfree5; }
        }
        /// <summary>
        /// 存货自由项6
        /// </summary>
        public string cFree6
        {
            set { _cfree6 = value; }
            get { return _cfree6; }
        }
        /// <summary>
        /// 存货自由项7
        /// </summary>
        public string cFree7
        {
            set { _cfree7 = value; }
            get { return _cfree7; }
        }
        /// <summary>
        /// 存货自由项8
        /// </summary>
        public string cFree8
        {
            set { _cfree8 = value; }
            get { return _cfree8; }
        }
        /// <summary>
        /// 存货自由项9
        /// </summary>
        public string cFree9
        {
            set { _cfree9 = value; }
            get { return _cfree9; }
        }
        /// <summary>
        /// 存货自由项10
        /// </summary>
        public string cFree10
        {
            set { _cfree10 = value; }
            get { return _cfree10; }
        }
        /// <summary>
        /// 换算率
        /// </summary>
        public decimal? iInvExchRate
        {
            set { _iinvexchrate = value; }
            get { return _iinvexchrate; }
        }
        /// <summary>
        /// 计量单位编码
        /// </summary>
        public string cUnitID
        {
            set { _cunitid = value; }
            get { return _cunitid; }
        }
        /// <summary>
        /// 销售订单主表标识
        /// </summary>
        public int? ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 表体自定义项28
        /// </summary>
        public string cDefine28
        {
            set { _cdefine28 = value; }
            get { return _cdefine28; }
        }
        /// <summary>
        /// 表体自定义项29
        /// </summary>
        public string cDefine29
        {
            set { _cdefine29 = value; }
            get { return _cdefine29; }
        }
        /// <summary>
        /// 表体自定义项30
        /// </summary>
        public string cDefine30
        {
            set { _cdefine30 = value; }
            get { return _cdefine30; }
        }
        /// <summary>
        /// 表体自定义项31
        /// </summary>
        public string cDefine31
        {
            set { _cdefine31 = value; }
            get { return _cdefine31; }
        }
        /// <summary>
        /// 表体自定义项32
        /// </summary>
        public string cDefine32
        {
            set { _cdefine32 = value; }
            get { return _cdefine32; }
        }
        /// <summary>
        /// 表体自定义项33
        /// </summary>
        public string cDefine33
        {
            set { _cdefine33 = value; }
            get { return _cdefine33; }
        }
        /// <summary>
        /// 表体自定义项33
        /// </summary>
        public int? cDefine34
        {
            set { _cdefine34 = value; }
            get { return _cdefine34; }
        }
        /// <summary>
        /// 表体自定义项35
        /// </summary>
        public int? cDefine35
        {
            set { _cdefine35 = value; }
            get { return _cdefine35; }
        }
        /// <summary>
        /// 表体自定义项36
        /// </summary>
        public DateTime? cDefine36
        {
            set { _cdefine36 = value; }
            get { return _cdefine36; }
        }
        /// <summary>
        /// 表体自定义项37
        /// </summary>
        public DateTime? cDefine37
        {
            set { _cdefine37 = value; }
            get { return _cdefine37; }
        }
        /// <summary>
        /// 采购数量
        /// </summary>
        public decimal? FPurQuan
        {
            set { _fpurquan = value; }
            get { return _fpurquan; }
        }
        /// <summary>
        /// 零售单价
        /// </summary>
        public decimal? fSaleCost
        {
            set { _fsalecost = value; }
            get { return _fsalecost; }
        }
        /// <summary>
        /// 零售金额
        /// </summary>
        public decimal? fSalePrice
        {
            set { _fsaleprice = value; }
            get { return _fsaleprice; }
        }
        /// <summary>
        /// 报价单号
        /// </summary>
        public string cQuoCode
        {
            set { _cquocode = value; }
            get { return _cquocode; }
        }
        /// <summary>
        /// 报价单id
        /// </summary>
        public int? iQuoID
        {
            set { _iquoid = value; }
            get { return _iquoid; }
        }
        /// <summary>
        /// 关闭标记
        /// </summary>
        public string cSCloser
        {
            set { _cscloser = value; }
            get { return _cscloser; }
        }
        /// <summary>
        /// 预完工日期
        /// </summary>
        public DateTime? dPreMoDate
        {
            set { _dpremodate = value; }
            get { return _dpremodate; }
        }
        /// <summary>
        /// 行号
        /// </summary>
        public int? iRowNo
        {
            set { _irowno = value; }
            get { return _irowno; }
        }
        /// <summary>
        /// 客户BOM ID
        /// </summary>
        public int? iCusBomID
        {
            set { _icusbomid = value; }
            get { return _icusbomid; }
        }
        /// <summary>
        /// 下达生产数量
        /// </summary>
        public decimal? iMoQuantity
        {
            set { _imoquantity = value; }
            get { return _imoquantity; }
        }
        /// <summary>
        /// 合同号
        /// </summary>
        public string cContractID
        {
            set { _ccontractid = value; }
            get { return _ccontractid; }
        }
        /// <summary>
        /// 合同标的
        /// </summary>
        public string cContractTagCode
        {
            set { _ccontracttagcode = value; }
            get { return _ccontracttagcode; }
        }
        /// <summary>
        /// 合同cGuid
        /// </summary>
        public Guid cContractRowGuid
        {
            set { _ccontractrowguid = value; }
            get { return _ccontractrowguid; }
        }
        /// <summary>
        /// PTO母件顺序号
        /// </summary>
        public int? iPPartSeqID
        {
            set { _ippartseqid = value; }
            get { return _ippartseqid; }
        }
        /// <summary>
        /// 母件物料id
        /// </summary>
        public int? iPPartID
        {
            set { _ippartid = value; }
            get { return _ippartid; }
        }
        /// <summary>
        /// 母件数量
        /// </summary>
        public decimal? iPPartQty
        {
            set { _ippartqty = value; }
            get { return _ippartqty; }
        }
        /// <summary>
        /// 客户存货编码
        /// </summary>
        public string cCusInvCode
        {
            set { _ccusinvcode = value; }
            get { return _ccusinvcode; }
        }
        /// <summary>
        /// 客户存货名称
        /// </summary>
        public string cCusInvName
        {
            set { _ccusinvname = value; }
            get { return _ccusinvname; }
        }
        /// <summary>
        /// 预留数量
        /// </summary>
        public decimal? iPreKeepQuantity
        {
            set { _iprekeepquantity = value; }
            get { return _iprekeepquantity; }
        }
        /// <summary>
        /// 预留件数
        /// </summary>
        public decimal? iPreKeepNum
        {
            set { _iprekeepnum = value; }
            get { return _iprekeepnum; }
        }
        /// <summary>
        /// 预留数量
        /// </summary>
        public decimal? iPreKeepTotQuantity
        {
            set { _iprekeeptotquantity = value; }
            get { return _iprekeeptotquantity; }
        }
        /// <summary>
        /// 预留总件数
        /// </summary>
        public decimal? iPreKeepTotNum
        {
            set { _iprekeeptotnum = value; }
            get { return _iprekeeptotnum; }
        }
        /// <summary>
        /// 释放日期
        /// </summary>
        public DateTime? dreleasedate
        {
            set { _dreleasedate = value; }
            get { return _dreleasedate; }
        }
        /// <summary>
        /// 客户最低售价
        /// </summary>
        public decimal? fcusminprice
        {
            set { _fcusminprice = value; }
            get { return _fcusminprice; }
        }
        /// <summary>
        /// 退货数量
        /// </summary>
        public decimal? fimquantity
        {
            set { _fimquantity = value; }
            get { return _fimquantity; }
        }
        /// <summary>
        /// 委外数量
        /// </summary>
        public decimal? fomquantity
        {
            set { _fomquantity = value; }
            get { return _fomquantity; }
        }
        /// <summary>
        /// 是否全部采购
        /// </summary>
        public bool ballpurchase
        {
            set { _ballpurchase = value; }
            get { return _ballpurchase; }
        }
        /// <summary>
        /// 入库数量
        /// </summary>
        public decimal? finquantity
        {
            set { _finquantity = value; }
            get { return _finquantity; }
        }
        /// <summary>
        /// 成本数量
        /// </summary>
        public decimal? icostquantity
        {
            set { _icostquantity = value; }
            get { return _icostquantity; }
        }
        /// <summary>
        /// 成本金额
        /// </summary>
        public decimal? icostsum
        {
            set { _icostsum = value; }
            get { return _icostsum; }
        }
        /// <summary>
        /// 出库数量
        /// </summary>
        public decimal? foutquantity
        {
            set { _foutquantity = value; }
            get { return _foutquantity; }
        }
        /// <summary>
        /// 出库件数
        /// </summary>
        public decimal? foutnum
        {
            set { _foutnum = value; }
            get { return _foutnum; }
        }
        /// <summary>
        /// 累计收款原币
        /// </summary>
        public decimal? iexchsum
        {
            set { _iexchsum = value; }
            get { return _iexchsum; }
        }
        /// <summary>
        /// 累计收款本币
        /// </summary>
        public decimal? imoneysum
        {
            set { _imoneysum = value; }
            get { return _imoneysum; }
        }
        /// <summary>
        /// 预订单autoid
        /// </summary>
        public int? iaoids
        {
            set { _iaoids = value; }
            get { return _iaoids; }
        }
        /// <summary>
        /// 预订单号
        /// </summary>
        public string cpreordercode
        {
            set { _cpreordercode = value; }
            get { return _cpreordercode; }
        }
        /// <summary>
        /// 退货数量
        /// </summary>
        public decimal? fretquantity
        {
            set { _fretquantity = value; }
            get { return _fretquantity; }
        }
        /// <summary>
        /// 退货件数
        /// </summary>
        public decimal? fretnum
        {
            set { _fretnum = value; }
            get { return _fretnum; }
        }
        /// <summary>
        /// 关闭日期
        /// </summary>
        public DateTime? dbclosedate
        {
            set { _dbclosedate = value; }
            get { return _dbclosedate; }
        }
        /// <summary>
        /// 关闭时间
        /// </summary>
        public DateTime? dbclosesystime
        {
            set { _dbclosesystime = value; }
            get { return _dbclosesystime; }
        }
        /// <summary>
        /// 是否订单BOM
        /// </summary>
        public bool bOrderBOM
        {
            set { _borderbom = value; }
            get { return _borderbom; }
        }
        /// <summary>
        /// 订单BOM是否完成
        /// </summary>
        public int? bOrderBOMOver
        {
            set { _borderbomover = value; }
            get { return _borderbomover; }
        }
        /// <summary>
        /// 需求跟踪方式 1-销售订单行号 4-需求分类号 5-销售订单号
        /// </summary>
        public int? idemandtype
        {
            set { _idemandtype = value; }
            get { return _idemandtype; }
        }
        /// <summary>
        /// 需求分类代号
        /// </summary>
        public string cdemandcode
        {
            set { _cdemandcode = value; }
            get { return _cdemandcode; }
        }
        /// <summary>
        /// 需求分类说明
        /// </summary>
        public string cdemandmemo
        {
            set { _cdemandmemo = value; }
            get { return _cdemandmemo; }
        }
        /// <summary>
        /// 采购金额
        /// </summary>
        public decimal? fPurSum
        {
            set { _fpursum = value; }
            get { return _fpursum; }
        }
        /// <summary>
        /// 采购发票数量
        /// </summary>
        public decimal? fPurBillQty
        {
            set { _fpurbillqty = value; }
            get { return _fpurbillqty; }
        }
        /// <summary>
        /// 采购发票金额
        /// </summary>
        public decimal? fPurBillSum
        {
            set { _fpurbillsum = value; }
            get { return _fpurbillsum; }
        }
        /// <summary>
        /// 进口订单明细行
        /// </summary>
        public long? iimid
        {
            set { _iimid = value; }
            get { return _iimid; }
        }
        /// <summary>
        /// 来源单据类型
        /// </summary>
        public string ccorvouchtype
        {
            set { _ccorvouchtype = value; }
            get { return _ccorvouchtype; }
        }
        /// <summary>
        /// 来源单据行号
        /// </summary>
        public int? icorrowno
        {
            set { _icorrowno = value; }
            get { return _icorrowno; }
        }
        /// <summary>
        /// 使用客户BOM
        /// </summary>
        public bool busecusbom
        {
            set { _busecusbom = value; }
            get { return _busecusbom; }
        }
        /// <summary>
        /// 用于存储GUID值
        /// </summary>
        public Guid body_outid
        {
            set { _body_outid = value; }
            get { return _body_outid; }
        }
        /// <summary>
        /// 已审核订货数量
        /// </summary>
        public decimal? fVeriDispQty
        {
            set { _fveridispqty = value; }
            get { return _fveridispqty; }
        }
        /// <summary>
        /// 已审核订货原币金额
        /// </summary>
        public decimal? fVeriDispSum
        {
            set { _fveridispsum = value; }
            get { return _fveridispsum; }
        }
        #endregion Model

    }
}

